.class Lcom/example/m6wmr/YucartActivity$14;
.super Ljava/lang/Thread;
.source "YucartActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6wmr/YucartActivity;->getshopSource()Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6wmr/YucartActivity;


# direct methods
.method constructor <init>(Lcom/example/m6wmr/YucartActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6wmr/YucartActivity$14;->this$0:Lcom/example/m6wmr/YucartActivity;

    .line 876
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 15

    .prologue
    .line 878
    invoke-super {p0}, Ljava/lang/Thread;->run()V

    .line 880
    new-instance v8, Landroid/os/Message;

    invoke-direct {v8}, Landroid/os/Message;-><init>()V

    .line 882
    .local v8, "msg":Landroid/os/Message;
    new-instance v12, Ljava/lang/StringBuilder;

    iget-object v13, p0, Lcom/example/m6wmr/YucartActivity$14;->this$0:Lcom/example/m6wmr/YucartActivity;

    iget-object v13, v13, Lcom/example/m6wmr/YucartActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v13}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v13

    invoke-static {v13}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v13

    invoke-direct {v12, v13}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 883
    const-string v13, "/index.php?ctrl=app&action=getshopnew&shopid="

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    .line 884
    iget-object v13, p0, Lcom/example/m6wmr/YucartActivity$14;->this$0:Lcom/example/m6wmr/YucartActivity;

    # getter for: Lcom/example/m6wmr/YucartActivity;->shopid:Ljava/lang/String;
    invoke-static {v13}, Lcom/example/m6wmr/YucartActivity;->access$7(Lcom/example/m6wmr/YucartActivity;)Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    .line 885
    const-string v13, "&datatype=json"

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    .line 882
    invoke-virtual {v12}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v11

    .line 886
    .local v11, "url":Ljava/lang/String;
    const-string v12, "YucartACtivity"

    new-instance v13, Ljava/lang/StringBuilder;

    const-string v14, "\u83b7\u53d6\u5e97\u94fa\u5217\u8868"

    invoke-direct {v13, v14}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v13, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v13

    invoke-virtual {v13}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v13

    invoke-static {v12, v13}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 887
    iget-object v12, p0, Lcom/example/m6wmr/YucartActivity$14;->this$0:Lcom/example/m6wmr/YucartActivity;

    iget-object v12, v12, Lcom/example/m6wmr/YucartActivity;->m:Lmyapp/MyApp;

    invoke-static {v11, v12}, LPlugclass/HttpConn;->getStr(Ljava/lang/String;Lmyapp/MyApp;)Ljava/lang/String;

    move-result-object v9

    .line 889
    .local v9, "str":Ljava/lang/String;
    :try_start_0
    new-instance v7, Lorg/json/JSONObject;

    invoke-direct {v7, v9}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 891
    .local v7, "json":Lorg/json/JSONObject;
    const-string v12, "error"

    invoke-virtual {v7, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    const-string v13, "true"

    invoke-virtual {v12, v13}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v12

    if-eqz v12, :cond_0

    .line 892
    invoke-static {}, Lmyapp/Util;->dismisDialog()V

    .line 893
    const-string v12, "msg"

    invoke-virtual {v7, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    iput-object v12, v8, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 894
    const/4 v12, 0x1

    iput v12, v8, Landroid/os/Message;->arg1:I

    .line 895
    iget-object v12, p0, Lcom/example/m6wmr/YucartActivity$14;->this$0:Lcom/example/m6wmr/YucartActivity;

    iget-object v12, v12, Lcom/example/m6wmr/YucartActivity;->h:Landroid/os/Handler;

    invoke-virtual {v12, v8}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 940
    .end local v7    # "json":Lorg/json/JSONObject;
    :goto_0
    return-void

    .line 898
    .restart local v7    # "json":Lorg/json/JSONObject;
    :cond_0
    const-string v12, "msg"

    invoke-virtual {v7, v12}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v12

    if-eqz v12, :cond_1

    .line 899
    invoke-static {}, Lmyapp/Util;->dismisDialog()V

    .line 900
    const/4 v12, 0x2

    iput v12, v8, Landroid/os/Message;->arg1:I

    .line 901
    iget-object v12, p0, Lcom/example/m6wmr/YucartActivity$14;->this$0:Lcom/example/m6wmr/YucartActivity;

    iget-object v12, v12, Lcom/example/m6wmr/YucartActivity;->h:Landroid/os/Handler;

    invoke-virtual {v12, v8}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 932
    .end local v7    # "json":Lorg/json/JSONObject;
    :catch_0
    move-exception v3

    .line 934
    .local v3, "e":Lorg/json/JSONException;
    invoke-virtual {v3}, Lorg/json/JSONException;->printStackTrace()V

    .line 935
    invoke-static {}, Lmyapp/Util;->dismisDialog()V

    .line 937
    const/4 v12, 0x2

    iput v12, v8, Landroid/os/Message;->arg1:I

    .line 938
    iget-object v12, p0, Lcom/example/m6wmr/YucartActivity$14;->this$0:Lcom/example/m6wmr/YucartActivity;

    iget-object v12, v12, Lcom/example/m6wmr/YucartActivity;->h:Landroid/os/Handler;

    invoke-virtual {v12, v8}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto :goto_0

    .line 904
    .end local v3    # "e":Lorg/json/JSONException;
    .restart local v7    # "json":Lorg/json/JSONObject;
    :cond_1
    :try_start_1
    iget-object v12, p0, Lcom/example/m6wmr/YucartActivity$14;->this$0:Lcom/example/m6wmr/YucartActivity;

    # getter for: Lcom/example/m6wmr/YucartActivity;->tempgoodsls:Ljava/util/List;
    invoke-static {v12}, Lcom/example/m6wmr/YucartActivity;->access$16(Lcom/example/m6wmr/YucartActivity;)Ljava/util/List;

    move-result-object v12

    invoke-interface {v12}, Ljava/util/List;->clear()V

    .line 905
    const-string v12, "msg"

    invoke-virtual {v7, v12}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v6

    .line 906
    .local v6, "jarray":Lorg/json/JSONArray;
    const/4 v4, 0x0

    .local v4, "i":I
    :goto_1
    invoke-virtual {v6}, Lorg/json/JSONArray;->length()I

    move-result v12

    if-lt v4, v12, :cond_2

    .line 927
    iget-object v12, p0, Lcom/example/m6wmr/YucartActivity$14;->this$0:Lcom/example/m6wmr/YucartActivity;

    invoke-static {v12, v9}, Lcom/example/m6wmr/YucartActivity;->access$24(Lcom/example/m6wmr/YucartActivity;Ljava/lang/String;)V

    .line 928
    const/16 v12, 0x64

    iput v12, v8, Landroid/os/Message;->arg1:I

    .line 929
    iget-object v12, p0, Lcom/example/m6wmr/YucartActivity$14;->this$0:Lcom/example/m6wmr/YucartActivity;

    iget-object v12, v12, Lcom/example/m6wmr/YucartActivity;->h:Landroid/os/Handler;

    invoke-virtual {v12, v8}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 930
    invoke-static {}, Lmyapp/Util;->dismisDialog()V

    goto :goto_0

    .line 907
    :cond_2
    invoke-virtual {v6, v4}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v12

    const-string v13, "det"

    invoke-virtual {v12, v13}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v10

    .line 908
    .local v10, "tarray":Lorg/json/JSONArray;
    const/4 v5, 0x0

    .local v5, "j":I
    :goto_2
    invoke-virtual {v10}, Lorg/json/JSONArray;->length()I

    move-result v12

    if-lt v5, v12, :cond_3

    .line 906
    add-int/lit8 v4, v4, 0x1

    goto :goto_1

    .line 910
    :cond_3
    new-instance v1, Lbean/GoodsBean;

    invoke-direct {v1}, Lbean/GoodsBean;-><init>()V

    .line 911
    .local v1, "bb":Lbean/GoodsBean;
    invoke-virtual {v10, v5}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v12

    const-string v13, "id"

    invoke-virtual {v12, v13}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v1, v12}, Lbean/GoodsBean;->setId(Ljava/lang/String;)V

    .line 912
    invoke-virtual {v10, v5}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v12

    const-string v13, "img"

    invoke-virtual {v12, v13}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v1, v12}, Lbean/GoodsBean;->setimg(Ljava/lang/String;)V

    .line 913
    invoke-virtual {v10, v5}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v12

    const-string v13, "name"

    invoke-virtual {v12, v13}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v1, v12}, Lbean/GoodsBean;->setname(Ljava/lang/String;)V

    .line 914
    invoke-virtual {v10, v5}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v12

    const-string v13, "point"

    invoke-virtual {v12, v13}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v1, v12}, Lbean/GoodsBean;->setpoint(Ljava/lang/String;)V

    .line 915
    invoke-virtual {v10, v5}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v12

    const-string v13, "typeid"

    invoke-virtual {v12, v13}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v1, v12}, Lbean/GoodsBean;->settypeid(Ljava/lang/String;)V

    .line 916
    invoke-virtual {v10, v5}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v12

    const-string v13, "sellcount"

    invoke-virtual {v12, v13}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v1, v12}, Lbean/GoodsBean;->setsellcount(Ljava/lang/String;)V

    .line 917
    invoke-virtual {v10, v5}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v12

    const-string v13, "count"

    invoke-virtual {v12, v13}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v1, v12}, Lbean/GoodsBean;->setcounts(Ljava/lang/String;)V

    .line 918
    invoke-virtual {v10, v5}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v12

    const-string v13, "bagcost"

    invoke-virtual {v12, v13}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    invoke-static {v12}, Ljava/lang/Float;->parseFloat(Ljava/lang/String;)F

    move-result v0

    .line 919
    .local v0, "bagcost":F
    invoke-virtual {v1, v0}, Lbean/GoodsBean;->setbagcost(F)V

    .line 920
    invoke-virtual {v10, v5}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v12

    const-string v13, "cost"

    invoke-virtual {v12, v13}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    invoke-static {v12}, Ljava/lang/Float;->parseFloat(Ljava/lang/String;)F

    move-result v2

    .line 921
    .local v2, "cost":F
    invoke-virtual {v1, v2}, Lbean/GoodsBean;->setcost(F)V

    .line 922
    iget-object v12, p0, Lcom/example/m6wmr/YucartActivity$14;->this$0:Lcom/example/m6wmr/YucartActivity;

    # getter for: Lcom/example/m6wmr/YucartActivity;->tempgoodsls:Ljava/util/List;
    invoke-static {v12}, Lcom/example/m6wmr/YucartActivity;->access$16(Lcom/example/m6wmr/YucartActivity;)Ljava/util/List;

    move-result-object v12

    invoke-interface {v12, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    .line 908
    add-int/lit8 v5, v5, 0x1

    goto/16 :goto_2
.end method

.method public declared-synchronized start()V
    .locals 1

    .prologue
    .line 943
    monitor-enter p0

    :try_start_0
    invoke-super {p0}, Ljava/lang/Thread;->start()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 944
    monitor-exit p0

    return-void

    .line 943
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method
